package com.aier.user.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Feedback entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "feedback", catalog = "abc")
public class Feedback implements java.io.Serializable {

    // Fields

    private Long fbid;
    private String title;
    private Timestamp cdate;
    private Long handler;
    private Short state;
    private Short score;
    private Long uid;
    private String stateStr;
    private String content;
    // 维护人员的名字
    private String name;

    /** default constructor */
    public Feedback() {
    }

    /** minimal constructor */
    public Feedback(Long fbid) {
        this.fbid = fbid;
    }

    /** full constructor */
    public Feedback(Long fbid, String title, Timestamp cdate, Long handler,Short state,Short score,Long uid,String content,String name) {
        this.fbid = fbid;
        this.title = title;
        this.cdate = cdate;
        this.handler = handler;
        this.state = state;
        this.score = score;
        this.uid = uid;
        this.content = content;
        this.name = name;
    }
    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "fbid", unique = true, nullable = false)
    public Long getFbid() {
        return fbid;
    }

    public void setFbid(Long fbid) {
        this.fbid = fbid;
    }

    @Column(name = "title")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

    @Column(name = "handler")
    public Long getHandler() {
        return handler;
    }

    public void setHandler(Long handler) {
        this.handler = handler;
    }

    @Column(name = "state")
    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    @Column(name = "score")
    public Short getScore() {
        return score;
    }

    public void setScore(Short score) {
        this.score = score;
    }

    @Column(name = "uid")
    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public String getStateStr() {
        return stateStr;
    }

    public void setStateStr(String stateStr) {
        this.stateStr = stateStr;
    }

    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}